<script setup>
//初始化user 
import {useUserStore} from '@/stores/user.ts'
const  userStore = useUserStore()
userStore.initUser()
//初始化cart
import { useCartStore } from '@/stores/cart';
import { onMounted } from 'vue';
const cartStore = useCartStore()
console.log(cartStore)
onMounted(()=>cartStore.initCart())
</script>

<template>
  <div>
    <router-view></router-view>

  </div>
</template>

<style scoped lang="scss">
</style>